package com.yingran.beiqi.activity

import android.content.Intent
import android.os.Bundle

class SplashActivity : BaseActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        checkPermission()
    }

    override fun titleType(): Title {
        return Title.None
    }

    private fun checkPermission() {
        handler.postDelayed({
            startActivity(Intent(this, MainActivity::class.java))
            finish()
            overridePendingTransition(0, android.R.anim.fade_out)
        }, 500)
    }
}